const express=require("express")
const pool=require("../db")

// 创建子路由
const router=express.Router()

router.post("/",(req,res)=>{
    console.log(req.body);
    var sql='select * from byd_pay where name=? and phone=?'
    pool.query(sql,[req.body.name,req.body.phone],(err,queryData)=>{
        // console.log(queryData);
        res.json(queryData)
    })
})
module.exports=router